/*    */ package com.yss.sofa.cml.design;
/*    */ 
/*    */ import com.yss.sofa.cml.ImageStore;
/*    */ import com.yss.sofa.cml.Visitor;
/*    */ import com.yss.sofa.cml.type.ImageTypeEnum;
/*    */ 
/*    */ public class BytesImageStore
/*    */   implements ImageStore
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   private ImageTypeEnum imageType;
/*    */   private byte[] bytes;
/*    */ 
/*    */   public byte[] getBytes()
/*    */   {
/* 16 */     return this.bytes;
/*    */   }
/*    */ 
/*    */   public void writeBytes(byte[] bytes) {
/* 20 */     this.bytes = bytes;
/*    */   }
/*    */ 
/*    */   public ImageTypeEnum getImageType()
/*    */   {
/* 25 */     return this.imageType;
/*    */   }
/*    */ 
/*    */   public void setImageType(ImageTypeEnum imageType) {
/* 29 */     this.imageType = imageType;
/*    */   }
/*    */ 
/*    */   public BytesImageStore clone() {
/* 33 */     BytesImageStore clone = null;
/*    */     try {
/* 35 */       clone = (BytesImageStore)super.clone();
/*    */     } catch (CloneNotSupportedException e) {
/* 37 */       throw new RuntimeException(e);
/*    */     }
/* 39 */     return clone;
/*    */   }
/*    */ 
/*    */   public void visit(Visitor visitor)
/*    */   {
/* 44 */     visitor.visitImageStore(this);
/*    */   }
/*    */ }

/* Location:           X:\repository\com\yss\sofa\cml\cml-api\1.1.0\cml-api-1.1.0.jar
 * Qualified Name:     com.yss.sofa.cml.design.BytesImageStore
 * JD-Core Version:    0.6.0
 */